package com.example.student;

public class Student {
    private String name;
    private  String age;
    private String telNum;

    public Student() {
    }

    public Student(String name, String age, String telNum) {
        this.name = name;
        this.age = age;
        this.telNum = telNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getTelNum() {
        return telNum;
    }

    public void setTelNum(String telNum) {
        this.telNum = telNum;
    }
    public void show(){

        System.out.println("名字:"+name);
        System.out.println("年龄:"+age);
        System.out.println("电话号码:"+telNum);


    }
}
